﻿using System;//应用了一个命名空间（库）

namespace bOOP
{
    internal class Program//声明一个类
    {
        class Person
        {
            //在类内的字段是可以有初值的
            public string name="王境泽";
            public int age;
            public char skinColor; //'\0'
            public void Chat()
            {
                Console.WriteLine("我是" + name + ",你愁啥？");
            }

        }
        class MainClass 
        {
            public static void Main(string[] args)
            {
                Person xiaoming = new Person();
                xiaoming.Chat();
                Console.WriteLine(xiaoming.name);
            }
        }


    }
}
